package org.nf.trading.dao;



import org.nf.trading.entity.CommentReply;
import org.nf.trading.entity.User;

import java.util.List;

public interface CommentReplyMapper {
    int getProductId(Integer CommentReplyId);
    /**
     * 通过评论id查询回复
     * @param commentId
     * @return
     */
    List<CommentReply> listAllByCommentId(Integer commentId);
    /**
     * 通过评论id
     * @param commentReplyId
     * @return
     */
    CommentReply getCommentReplyUserById(Integer commentReplyId);

    int deleteByPrimaryKey(Integer commentReplyId);

    int insert(CommentReply record);

    CommentReply selectByPrimaryKey(Integer commentReplyId);

    List<CommentReply> selectAll();

    int updateByPrimaryKey(CommentReply record);

    // 根据评论Id查询回复信息数量
    long countCommentReply(Integer commentId);
}